public class Names
{
   /**
      Gets the initials of a name.
      @param first the first name of this name
      @param middle the middle name of this name
      @param last the last name of this name
      @return a string consisting of the first character of the first, middle,
      and last name
   */
   public String initials(String first, String middle, String last)
   {
      int i = 0; 
      char c1 = first.charAt(i);
      char c2 = middle.charAt(i);
      char c3 = last.charAt(i);
      String result = "" + c1 + c2 + c3;
      return result;
   }
}